package com.mmall.controller;

import com.mmall.annotation.RequsetPremission;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/admin")
@RequsetPremission(state = true,permissionName = "系统管理",url ="/admin")
public class AdminController {

    @RequestMapping("index.page")
    @RequsetPremission(state = true,permissionName = "进入主界面",url="/index.page")
    public ModelAndView index(){
        return new ModelAndView("admin");
    }
}
